package com.xiaojie.summer.factory;

import com.xiaojie.summer.exception.BeansException;

/**
 * @author Nick
 * @date 2021/5/22
 * @description bean工厂
 */
public interface BeanFactory {

    Object getBean(String name) throws BeansException;

    <T> T getBean(String name, Class<T> type) throws BeansException;

    Object getBean(Class type) throws BeansException;

}
